.homePage {
  .databaseList {
    @include eui.scrollBar;

    height: 100%;
    overflow: auto;
    position: relative;

    background-color: var(--euiColorEmptyShade);

    .euiBasicTable {
      border-top: none;
    }

    .euiTable {
      position: relative;
      background-color: transparent;
    }

    thead tr {
      background-color: var(--euiColorEmptyShade);
      height: 54px;

      &:first-child {
        border-left: 1px solid var(--euiColorLightShade);
      }
      &:last-child {
        border-right: 1px solid var(--euiColorLightShade);
      }
    }

    tbody tr {
      &:last-child {
        border-bottom: 1px solid var(--euiColorLightShade);
      }
    }

    .euiTableHeaderCell,
    .euiTableHeaderCellCheckbox {
      padding-top: 3px;
      position: sticky;
      top: 0;
      z-index: 1;
      background-color: var(--euiColorEmptyShade);
      border-bottom: none !important;

      box-shadow:
        inset 0 1px 0 var(--euiColorLightShade),
        inset 0 -1px 0 var(--euiColorLightShade);
    }

    .euiTableRow {
      font-size: 14px !important;
      height: 48px;

      .column_name {
        cursor: pointer;
        padding-top: 0;
        padding-bottom: 0;

        div {
          line-height: 47px;
          display: block;
          text-overflow: ellipsis;
          white-space: nowrap;
          overflow: hidden;
          width: 100%;
          min-width: 40px;
        }

        :global(.euiToolTipAnchor) {
          max-width: 100%;
        }
      }

      .copyHostPortText,
      .copyPublicEndpointText,
      .column_name,
      .column_name .euiToolTipAnchor {
        display: inline-block;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        max-width: 100%;
        vertical-align: top;
      }

      .euiIcon--medium {
        width: 18px;
        height: 18px;
      }

      .column_controls {
        float: right;
        width: 100%;

        .euiPopover {
          text-align: right;
          position: absolute;
          right: 15px;
        }
      }

      .host_port,
      .public_endpoint {
        height: 24px;
        line-height: 24px;
        width: auto;
        max-width: 100%;
        padding-right: 34px;
        position: relative;

        * {
          color: var(--textColorShade) !important;
        }

        &:hover .copyHostPortBtn,
        &:hover .copyPublicEndpointBtn {
          opacity: 1;
          height: auto;
        }
      }

      .copyHostPortBtn,
      .copyPublicEndpointBtn {
        margin-left: 25px;
        opacity: 0;
        height: 0;
        transition: opacity 250ms ease-in-out;
      }

      .copyHostPortText,
      .copyPublicEndpointText {
        display: inline-block;
        width: auto;
        max-width: 100%;
      }

      .copyPublicEndpointText {
        max-width: calc(100% - 50px);
      }

      .copyHostPortTooltip,
      .copyPublicEndpointTooltip {
        position: absolute;
        right: 0;
      }

      .column_copy {
        padding-left: 50%;
      }

      .deleteInstancePopover {
        width: 100%;
      }

      .deleteInstanceTooltip {
        margin-right: 10%;
      }

      .editInstanceBtn {
        position: absolute;
        right: 50px;
      }

      &:nth-child(odd) {
        background-color: var(--euiColorEmptyShade);
        .options_icon {
          border: 2px solid var(--euiColorEmptyShade);
        }
      }
      &:nth-child(even) {
        background-color: var(--browserTableRowEven);

        .options_icon {
          border: 2px solid var(--browserTableRowEven);
        }
      }

      .euiTableRowCell,
      .euiTableRowCellCheckbox {
        border-bottom-width: 0;
      }

      @media only screen and (max-width: 767px) {
        height: auto;
      }
    }

    .euiTableCellContent {
      @media only screen and (min-width: 767px) {
        padding-left: 14px;
      }
    }

    .euiTableFooterCell,
    .euiTableHeaderCell {
      color: var(--htmlColor);
    }

    .euiTableHeaderCell {
      .euiTableCellContent__text {
        font-size: 16px !important;
        font-family: "Graphik", sans-serif !important;
        font-weight: 500 !important;
      }

      .euiTableHeaderButton {
        &:hover *,
        &:active *,
        &:focus * {
          color: var(--euiTextColor) !important;
          fill: var(--euiTextColor) !important;
        }
      }
    }
  }

  .euiTitle {
    padding-bottom: 15px;
    font-size: 18px;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .euiFormControlLayout {
    max-width: 100% !important;

    input,
    select,
    textarea {
      max-width: 100% !important;
      font-size: 14px;
      line-height: 24px;
    }
  }

  .euiFormRow {
    max-width: 100% !important;
    padding-top: 15px;
  }

  .euiRadioGroup__item {
    display: inline-block;
    vertical-align: top !important;
    margin-top: 1px !important;
    margin-bottom: 3px !important;
    margin-right: 30px !important;
  }

  .euiFormRow__fieldWrapper {
    position: relative;
  }

  .euiFormRow__text {
    position: relative;
    top: -10px;
    margin-bottom: -10px;
  }

  .euiFormHelpText {
    color: var(--euiColorMediumShade);
  }

  .euiCheckbox__label {
    font-size: 14px !important;
  }

  textarea {
    resize: none;
    max-height: 85px;
    transition: max-height 0.4s ease;
    &:focus {
      max-height: 180px;
    }
  }

  .databasePanelWrapper {
    height: 100%;
    background-color: var(--euiColorEmptyShade);
  }

  .container {
    @include eui.scrollBar;

    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100% - 74px);
    padding: 40px 30px 25px;
    margin-right: 5px;
    border-radius: 4px;

    @media only screen and (max-width: 767px) {
      height: calc(100vh - 340px);
    }
  }

  .formDataTypes {
    padding-top: 20px;
  }

  .dbTypes {
    padding-bottom: 10px;
  }

  .getStartedForm {
    max-width: 752px;
    padding-top: 3px;
    font-family: "Graphik", sans-serif;
    font-weight: 400 !important;
  }

  .boxSection {
    padding: 3px 18px 18px;
    background-color: var(--euiColorLightestShade) !important;
    border: 1px solid var(--euiColorLightShade);
    border-radius: 4px;
    margin-top: 10px;

    .euiSelect,
    .euiSuperSelectControl,
    .euiFieldText,
    .euiTextArea {
      background-color: var(--euiColorLightestShade) !important;
    }
  }

  .footerAddDatabase {
    bottom: 0;
    float: right;
    text-align: right;
    vertical-align: bottom;
    width: 100%;
    padding: 16px 24px 16px;
    border-radius: 0 0 4px 4px;

    border-top: 1px solid var(--euiColorLightShade);
  }

  .euiResizableContainer {
    .container {
      margin-right: 0;
      padding: 12px 24px;

      &.addDbWrapper {
        padding: 20px 30px;
      }
    }

    .footerAddDatabase {
      margin: 0px;
      width: 100%;
    }
    .euiFormLegend {
      display: none;
    }

    .euiRadioGroup__item {
      margin-right: 0 !important;
      width: auto;
      padding-right: 40px;
    }
  }

  .passwordField {
    padding: 12px;
  }

  .euiButton.btn-cancel,
  .euiButton.btn-back {
    margin-right: 10px;
    min-width: 71px !important;
  }

  .flexGroupResponsiveForm {
    flex-wrap: wrap;
    margin-left: 0;
    margin-right: 0;
    padding-top: 10px;
  }

  .flexItemResponsiveForm {
    width: 100% !important;
    flex-basis: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: 20px;

    .euiFormRow {
      padding-top: 0px;
      .euiCheckbox {
        display: flex;
        min-height: 24px;
        align-items: center;
      }
    }
  }

  .clusterDatabaseList,
  .clusterDatabaseListResult,
  .cloudDatabaseList,
  .cloudDatabaseListResult,
  .sentinelDatabaseList,
  .sentinelDatabaseListResult {
    overflow: hidden !important;

    .column_status * {
      text-transform: capitalize !important;
    }

    .euiButton.btn-back {
      float: left;
    }
  }

  .sentinelDatabaseList {
    height: calc(100vh - 335px) !important;

    @media (min-width: 1180px) {
      height: calc(100vh - 280px) !important;
    }

    @media only screen and (max-width: 900px) {
      height: calc(100vh - 357px) !important;
    }
  }

  .clusterDatabaseListResult .euiTableRowCell:first-child,
  .clusterDatabaseListResult .euiTableHeaderCell:first-child,
  .sentinelDatabaseListResult .euiTableRowCell:first-child,
  .sentinelDatabaseListResult .euiTableHeaderCell:first-child,
  .cloudDatabaseListResult .euiTableRowCell:first-child,
  .cloudDatabaseListResult .euiTableHeaderCell:first-child {
    padding-left: 10px;
  }
}

.homePage_tooltip {
  width: 470px !important;
  max-width: 470px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  padding-left: 15px !important;
  padding-top: 15px !important;

  .euiToolTip__title {
    padding: 5px 10px 0 !important;
  }

  p {
    opacity: 0.8 !important;
  }
}

.homePage_toolTipUl {
  font-weight: 300 !important;
  opacity: 0.85;
  padding-bottom: 10px;

  li {
    line-height: 20px;
  }

  .dot {
    margin-left: 10px;
  }

  .dot::before {
    font-size: 8px;
    padding: 0 14px;
    content: " \25CF";
    vertical-align: middle;
  }
}

.theme_DARK {
  .homePage {
    .databaseList {
      .euiTableCellContent {
        color: var(--textColorShade) !important;
      }

      .euiTableHeaderCell .euiTableCellContent {
        color: #fff !important;
      }
    }
  }
}
